<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 <meta>
  <!-- Stylesheets -->
  <link href="web.css" type="text/css" rel="stylesheet"></link>
  <link href="pygmentize.css" type="text/css" rel="stylesheet"></link>
  <title>VLFeat - Download - MATLAB install</title>
  

  <!-- Scripts-->
  
 </meta>

 <!-- Body Start -->
 <body>
  <div id="header">
   <!-- Google CSE Search Box Begins -->
   <form action="http://www.vlfeat.org/search.html" method="get" id="cse-search-box" enctype="application/x-www-form-urlencoded">
    <div>
     <input type="hidden" name="cx" value="003215582122030917471:oq23albfeam"></input>
     <input type="hidden" name="cof" value="FORID:11"></input>
     <input type="hidden" name="ie" value="UTF-8"></input>
     <input type="text" name="q" size="31"></input>
     <input type="submit" name="sa" value="Search"></input>
    </div>
   </form>
   <script src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en" xml:space="preserve" type="text/javascript"></script>
   <!-- Google CSE Search Box Ends -->
   <h1><a shape="rect" href="index.html" class="plain"><span id="vlfeat">VLFeat</span><span id="dotorg">.org</span></a></h1>
  </div>
  <div id="headbanner">
   Download - MATLAB install
  </div>
  <div id="pagebody">
   <div id="sidebar"> <!-- Navigation Start -->
    <ul>
<li><a href="index.html">Home</a>
</li>
<li><a href="download.html">Download</a>
<ul>
<li><a href="install-matlab.html" class='active' >MATLAB install</a>
</li>
<li><a href="install-shell.html">Shell install</a>
</li>
<li><a href="install-c.html">C library install</a>
</li>
<li><a href="compiling.html">Compiling</a>
</li>
</ul></li>
<li><a href="doc.html">Documentation</a>
</li>
<li><a href="overview/tut.html">Tutorials</a>
</li>
<li><a href="applications/apps.html">Applications</a>
</li>
</ul>

   </div> <!-- sidebar -->
   <div id="content">
    
   

<p>These instructions explain how to setup VLFeat in MATLAB using the
binary distribution (it is also possible
to <a shape="rect" href="compiling.html">compile</a> the library and toolbox from
source).</p>

<h1>One-time setup</h1>

<p><a shape="rect" href="download.html">Download</a> and unpack the latest
VLFeat binary distribution in a directory of your choice
(e.g. <code>~/src/vlfeat</code>). Let <code>VLFEATROOT</code> denote
this directory. VLFeat must be added to MATLAB search path by running
the <code>vl_setup</code> command found in
the <code>VLFEATROOT/toolbox</code> directory. From MATLAB prompt
enter</p>

<div class="highlight"><pre><span class="gp">&gt;&gt; </span><span class="n">run</span><span class="p">(</span><span class="s">&#39;VLFEATROOT/toolbox/vl_setup&#39;</span><span class="p">)</span>
<span class="go">VLFeat 0.9.8 ready.</span>
</pre></div>


<p>To check that VLFeat is sucessfully installed, try to run
the <code>vl_version</code> command:</p>

<div class="highlight"><pre><span class="gp">&gt;&gt; </span><span class="n">vl_version</span> <span class="n">verbose</span>
<span class="go">VLFeat version 0.9.8</span>
<span class="go">    Static config: X64, little_endian, GNU C 40201 LP64, POSIX_threads, SSE2</span>
<span class="go">    4 CPU(s): GenuineIntel MMX SSE SSE2 SSE3 SSE41 SSE42</span>
<span class="go">    SIMD enabled: yes</span>
</pre></div>


<h1>Permanent setup</h1>

<p>To permanently add VLFeat to your MATLAB environment, add this line
to your
<a shape="rect" href="http://www.google.com/search?q=site:www.mathworks.com+startup.m&amp;btnI=I"><code>startup.m</code>
file</a>:</p>

<div class="highlight"><pre><span class="n">run</span><span class="p">(</span><span class="s">&#39;VLFEATROOT/toolbox/vl_setup&#39;</span><span class="p">)</span>
</pre></div>


<p>When you restart MATLAB, you should see the VLFeat greeting
message.</p>

<h1>Getting started</h1>

<p>All commands embed interface documentation that can be viewed with
the
builtin <a shape="rect" href="http://www.google.com/search?q=site:www.mathworks.com+help&amp;btnI=I"><code>help</code>
command</a> (e.g. <code>help vl_sift</code>).</p>

<p>VLFeat bundles a large number of demos. To use them, add the demo
path with <code>vl_setup demo</code>. For example, a sift demo
<code>vl_demo_sift_basic</code> can be run using the following:</p>

<div class="highlight"><pre><span class="gp">&gt;&gt; </span><span class="n">vl_setup</span> <span class="n">demo</span>

<span class="gp">&gt;&gt; </span><span class="n">vl_demo_sift_basic</span>
</pre></div>


<p>To see a list of demos TAB-complete <code>vl_demo</code> at MATLAB
prompt, after running <code>vl_setup demo</code>.</p>


  
   </div>
   <div class="clear">&nbsp;</div>
  </div> <!-- pagebody -->
  <div id="footer">
   &copy; 2007-12 Andrea Vedaldi and Brian Fulkerson
  </div> <!-- footer -->

  <!-- Google Analytics Begins -->
  <script xml:space="preserve" type="text/javascript">
   //<![CDATA[
    var localre = /vlfeat.org/;
    if(document.location.host.search(localre) != -1)
    {
   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
   document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
   }
   //]]>
  </script>
  <script xml:space="preserve" type="text/javascript">
    //<![CDATA[
    var localre = /vlfeat.org/;
    if(document.location.host.search(localre) != -1)
    {

   try {
   var pageTracker = _gat._getTracker("UA-4936091-2");
   pageTracker._trackPageview();
   } catch(err) {}

   }
   //]]>
  </script>
  <!-- Google Analytics Ends -->
 </body>
</html>

 